gsk: Add a way to limit texture sizes
authorMatthias Clasen <mclasen@redhat.com>
Wed, 15 Mar 2023 18:31:45 +0000 (14:31 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 15 Mar 2023 18:35:57 +0000 (14:35 -0400)
commit895d427c6a7e883b13d0aeddce18bc271318a63d
tree77673595eea02992704a9239e22a312b1c405d16
parentc2965aed353d21ab58e225ae8646d45dc55153e1
gsk: Add a way to limit texture sizes

Allow to set max texture size using the
GSK_MAX_TEXTURE_SIZE environment variable.

We only allow to lower the max (for obvious
reasons), and we don't allow values smaller
than 512 (since our atlases use that size).
gsk/gl/gskglcommandqueue.c